<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}
	srand(seed());
    $contentid=time()+mt_rand (0,10240000 );
    if(!empty($usergroup)){
        while(list($k,$trow)=each($usergroup)){
           $usergroupdata[$k]=$trow["title"]; 
        }
        
    }else{
        $usergroupdata=array();
    }
?>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post"  class="pageForm required-validate"  name="form1" onsubmit="return validateCallback(this, dialogAjaxDone);">
<input type="hidden" name="id" value="<?=$row['id']?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="60">
<p><label>用户名：</label>
<?
if(!empty($id)){

echo $row['username'];
}else{
?>
<input name="username" type="text" size="40"  id="username" value="<?=$row['username']?>" class="required" />
<?    
}
?>

</p>
<p><label>登录密码：</label>
<input name="password" type="password" size="40" class="alphanumeric" minlength="6" maxlength="20"  id="w_password" value=""  />
</p>
<p><label>确认密码：</label>
<input name="password1" type="password" size="40" equalto="#w_password"  id="password1" value=""  />
</p>
<p><label>昵称：</label>
<input name="nickname" type="text" size="40"  id="nickname" value="<?=$row['nickname']?>" />
</p>
<p><label>手机号码：</label>
<input name="mobile" type="text" size="40"  id="mobile" class="phone" value="<?=$row['mobile']?>" />
</p>
<p><label>邮件地址：</label>
<input name="email" type="text" size="40"  id="email" class="required email" value="<?=$row['email']?>" />
</p>
<p><label>用户等级：</label>
<?=select($usergroupdata,$row['groupid'],'groupid')?>
</p>
</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
